export function clientCookies() {
  if (!document) return

  const cookies = document.cookie.split('; ')
  const cookieMap: Record<string, string> = {}
  cookies.forEach((cookie) => {
    const [name, value] = cookie.split('=')
    cookieMap[name] = value
  })
  return cookieMap!
}
